﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:XAudio2Controls">

    <!--Region: XA2PatchBase-->
    <Style TargetType="{x:Type local:XA2PatchBase}">
        <Setter Property="Template" x:Name="DrumTemplate">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:XA2PatchBase}" x:Name="DrumControlTemplate">
                    <Grid x:Name="LayoutRoot">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="0.2*"/>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <Grid Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="0" Name="GridRow0">
                            <Border BorderThickness=".6">
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                                    <Border>
                                        <Label 
                                            x:Name="PART_LabelPatchControl"                                             
                                            VerticalAlignment="Center"                                            
                                            FontSize="12" 
                                            HorizontalAlignment="Right" />
                                    </Border>
                                    <Button Content="New Patch" x:Name="PART_ButtonNewPatch"/>
                                    <Button Content="Remove" x:Name="PART_ButtonRemovePatch"/>
                                </StackPanel>
                            </Border>
                        </Grid>
                        <Grid Grid.Column="0" Grid.Row="0" Grid.RowSpan="2">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition/>
                            </Grid.RowDefinitions>                            
                                <Label Grid.Row="0" HorizontalAlignment="Center" Content="[Active Patches]"/>
                                <ListBox Grid.Row="1" x:Name="PART_ListBoxPatches" Margin="1"/>                            

                        </Grid>
                        <GridSplitter 
                            Grid.Row="0"
                            Grid.RowSpan="2"
                            Background="{DynamicResource ControlBackgroundBrush}"
                                      Grid.Column="1"                                     
                                      HorizontalAlignment="Center"
                                      ShowsPreview="True"
                                      Width="5" 
                                      VerticalAlignment="Stretch"/>
                        <Grid x:Name="PART_TabControlGrid" Grid.Column="2" Grid.Row="1">
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>        
    </Style>
   
    <!--EndRegion: XA2PatchBase-->

</ResourceDictionary>